<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改个人信息</title>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.css" />
<link rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery1.9.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/sdmenu.js"></script>
<script type="text/javascript" src="<%=path %>/js/laydate/laydate.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#submit").click(function(){
			var unit_name=$("#unit_name").val();
			var unit_pwd=$("#unit_pwd").val();
			var unit_address=$("#unit_address").val();
			var unit_size=$("#unit_size").val();
			var unit_industry=$("#unit_industry").val();
			var unit_nature=$("#unit_nature").val();
			if($.trim(unit_name)==""){
				alert("请输入单位名称");
				return false;
			}
			if($.trim(unit_pwd)==""){
				alert("请输入登录密码");
				return false;
			}
			if($.trim(unit_address)==""){
				alert("请输入单位地址");
				return false;
			}
			if($.trim(unit_size)==""){
				alert("请输入单位规模");
				return false;
			}
			if($.trim(unit_industry)==""){
				alert("请输入单位行业");
				return false;
			}
			if($.trim(unit_nature)==""){
				alert("请输入单位性质");
				return false;
			}
			
			alert("修改成功");
			$("#form").submit();
		});
	});
</script>
</head>
<body>
	<div class="right_cont">
		<ul class="breadcrumb">当前位置：个人信息管理<span class="divider">/</span></span>单位信息编辑</ul>
	</div>
	<div class="title_right"><strong>单位信息编辑</strong></div>
	<form action="<%=path %>/unit/unitInfoOk.do" id="form" method="post">
	<table class="table table-bordered" style="width:700px" align="center">
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">单位名称：</td>
			<td width="50%">
				<input type="text" name="unit_name" id="unit_name" style="width:300px" value="${requestScope.unit.unit_name}" class="span1-1" />
				<input type="hidden" name="unit_id" value="${requestScope.unit.unit_id }" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">登录账号：</td>
			<td width="50%">
				${requestScope.unit.unit_account}
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">登录密码：</td>
			<td width="50%">
				<input type="password" name="unit_pwd" id="unit_pwd" style="width:150px" value="${requestScope.unit.unit_pwd}" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">单位地址：</td>
			<td width="50%">
				<input type="text" name="unit_address" id="unit_address" style="width:300px" value="${requestScope.unit.unit_address}" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">单位规模：</td>
			<td width="50%">
				<select name="unit_size" id="unit_size" style="width: 150px;">
					<option value="">--请选择--</option>
					<option value="1-50">1-50</option>
					<option value="50-100">50-100</option>
					<option value="100-500">100-500</option>
					<option value="500-2000">500-2000</option>
					<option value="2000-10000">2000-10000</option>
					<option value="大于10000">大于10000</option>
				</select>人
				<font color="red">*</font>
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">所属行业：</td>
			<td width="50%">
				<select name="unit_industry" id="unit_industry" style="width: 150px;">
					<option value="">--请选择--</option>
					<option value="农、林、牧、渔业">农、林、牧、渔业</option>
					<option value="采矿业">采矿业</option>
					<option value="制造业">制造业</option>
					<option value="住宿和餐饮业">住宿和餐饮业</option>
					<option value="金融业">金融业</option>
					<option value="房地产业">房地产业</option>
					<option value="租赁和商务服务">租赁和商务服务</option>
					<option value="互联网行业">互联网行业</option>
					<option value="其他行业">其他行业</option>
					
				</select>
				<font color="red">*</font>
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">单位性质：</td>
			<td width="50%">
				<select name="unit_nature" id="unit_nature" style="width: 150px;">
					<option value="">--请选择--</option>
					<option value="国有企业">国有企业</option>
					<option value="中外合作企业">中外合作企业</option>
					<option value="中外合资企业">中外合资企业</option>
					<option value="外商独资企业">外商独资企业</option>
					<option value="集体企业 ">集体企业 </option>
					<option value="私营企业">私营企业</option>
				</select>
				<font color="red">*</font>
			</td>
		</tr>
	</table>
	<table class="margin-bottom-20 table  no-border">
		<tr>
			<td class="text-center">
				<input type="submit" id="submit" value="确定修改" class="btn btn-info " style="width: 80px;" />
			</td>
		</tr>
	</table>
	</form>
</body>
</html>